package com.bf.hotpoint.domain;

import java.io.Serializable;

import org.springframework.data.annotation.Id;

/**
 * Hello world!
 *
 */
public class User extends BasicUser implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5473375894045868632L;
	
	/**
	@Id
	private String userId;
	*/
	private String uuid;
	private String nickName;
	private String deviceToken;
	/*private DEVICE_TYPE deviceType;
	private String userIp;
    private long firstUseTime;
    private long lastUseTime;
    private int numberOfConnection;*/
    
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String deviceId) {
		this.uuid = deviceId;
	}
	
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	
	public String getDeviceToken() {
		return deviceToken;
	}
	public void setDeviceToken(String deviceToken) {
		this.deviceToken = deviceToken;
	}
	@Override
    public String toString() {
        return String.format(
                "User[  uuid='%s', report='%d', reported='%d', available='%b']",
                 uuid, super.getReport(),super.getReported(),super.isAvailable());
    }
}
